import time
import unittest
from selenium import webdriver
from jiuxian111.Page.Page import Page
from jiuxian111.Page.Page1 import Page1
class Test_case(unittest.TestCase):
    def setUp(self):
        self.driver=webdriver.Edge()
        self.driver.maximize_window()
        #隐式等待
        self.driver.implicitly_wait(10)
    def tearDown(self):
        time.sleep(10)
        self.driver.quit()

    def test_jiuxian_login(self):
        po=Page(self.driver)
        yq1=po.jiuxian_luoji()
        print(yq1)
        self.assertEqual(yq1,'帐号登录')
        po.dy2()
        print(po.dy2())
        self.assertEqual(po.dy2(),'jxw225264768')

    def test_jiuxian_search(self):
        po=Page1(self.driver)
        po.jiuxian_luoji2()

if __name__ == '__main__':
    unittest.main()



